package com.musicapp;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class ItemModel{
    private int id;
    private String coverImage;
    private String musicName;
    private String author;
    private String musicUrl;
    private String lyricUrl;

    public ItemModel(int id, String coverImage,String musicName,String author,String musicUrl,String lyricUrl) {
        this.id = id;
        this.coverImage = coverImage;
        this.musicName = musicName;
        this.author = author;
        this.musicUrl = musicUrl;
        this.lyricUrl = lyricUrl;
    }

    public int getid() {
        return id;
    }
    public void setMid(int moduleConfigId) {
        this.id = moduleConfigId;
    }

    public String getCoverImage() {
        return coverImage;
    }
    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public String getMusicName() {
        return musicName;
    }
    public void setMusicName(String musicName) {
        this.musicName = musicName;
    }

    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }

    public String getMusicUrl() {
        return musicUrl;
    }
    public void setMusicUrl(String musicUrl) {
        this.musicUrl = musicUrl;
    }

    public String getLyricUrl() {
        return lyricUrl;
    }
    public void setLyricUrl(String lyricUrl) {
        this.lyricUrl = lyricUrl;
    }

    public SongModel transModel(){
        SongModel songModel = new SongModel(author,coverImage,musicName,musicUrl,lyricUrl);
        return songModel;
    }
}